using System;
using System.Collections.Generic;
using System.Text;
using CSF.Communications.Sdp.ServiceLogic.Entities;

namespace CSF.Communications.Sdp.ServiceLogic.Utilities
{
    public class DataTransferProvider
    {
        #region PayloadtoMid
        /// <summary>
        /// 
        /// </summary>
        /// <param name="slType"></param>
        /// <returns></returns>
        public static CSF_MID PayloadtoMid(ServiceLogicPayloadType slType)
        {
            CSF_MID csfMid = null;
            RoutingDataType routingData=null;
            
            try
            {

                csfMid = new CSF_MID();
                routingData = new RoutingDataType();
                csfMid.CSFData = slType.CSFData;
                csfMid.CSFProfile = slType.CSFProfile;
                csfMid.VASDataCollection = slType.VASDataCollection;
                routingData.CurrentState="Start";
                routingData.NextStates = "";
                routingData.CalledStates = "";
                routingData.Timeouts = "";
                routingData.Maps = "";
                routingData.ErrorMessageToSbe = "";
                
                csfMid.RoutingData = routingData;


                csfMid.ServiceLogicStatus = new ServiceLogicCompletionStatus();
                csfMid.ServiceLogicStatus.RulePolicyStatus = RulePolicyStatusType.inprogress;

            }
            catch (Exception ex)
            {
            }
            finally
            {
            
            }

            return csfMid;
        }
        #endregion

        #region MidToVasRequest
        
        #endregion
    }
}
